package com.hive.udf;

public class TestClass {
	// 测试的main方法
	public static void main(String[] args) throws Exception {
		Haliday fes = new Haliday();
		String date_str = "20151001";
		System.out.println(date_str +": "+fes.evaluate(date_str));

		String date_str1 = "20160101";
		String result = fes.evaluate(date_str1);
		System.out.println(date_str1+" result is:" + result);

		double date_dou = 20160101;
		int result_dou = fes.evaluate(date_dou, "count");
		System.out.println(result_dou);
		
		System.out.println(fes.evaluate(date_str,date_str1 ));
	}
}
